// OOClientDlg.h : header file
//

#if !defined(AFX_OOCLIENTDLG_H__03B11D8D_E03C_478B_9598_67C5C24F614D__INCLUDED_)
#define AFX_OOCLIENTDLG_H__03B11D8D_E03C_478B_9598_67C5C24F614D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WM_SYSTRAYICON (WM_USER+200)

/////////////////////////////////////////////////////////////////////////////
// COOClientDlg dialog

#include "Client.h"
class COOClientDlg : public CDialog
{
// Construction
public:
	CString name;
	int to;
	void AutoInitIcon();
	void RefreshUserList();
	BOOL AutoInitNid();
	NOTIFYICONDATA m_nid;
	BOOL bRun;
	LONG OnSocket(WPARAM w,LPARAM l);
	CClient socket;
	int port;
	DWORD addr;
	void AutoStart();
	COOClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(COOClientDlg)
	enum { IDD = IDD_OOCLIENT_DIALOG };
	CListBox	m_msg;
	CButton	m_log;
	CEdit	m_editc;
	CListCtrl	m_list;
	CString	m_edit;
	CString	m_to;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COOClientDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	LONG OnSysTrayIcon(WPARAM w, LPARAM l);
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(COOClientDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnAbout();
	afx_msg void OnStart();
	afx_msg void OnClear();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnClickUserList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OOCLIENTDLG_H__03B11D8D_E03C_478B_9598_67C5C24F614D__INCLUDED_)
